<script setup>
import searchEngine from '../firstPage/searchEngine.vue'
</script>
<template>
  <div id="nav">
    <searchEngine ref="son"></searchEngine>
    <router-link to="/firstIntroduce">推荐</router-link>
    <router-link to="/detailPage">&nbsp;&nbsp;&nbsp;&nbsp;热搜</router-link>
  </div>
  <router-view />
</template>

<style lang="scss">
#app {
  text-align: center;
  color: #2c3e50;
}

#nav {
  padding: 20px;
  width: 70%;
  margin: auto;
  background-color: whitesmoke;

  a {
    font-weight: bold;
    color: #2c3e50;
    font-family: '宋体';
    font-size: 20px;
    text-decoration: none;
    margin-top: 30px;
    &.router-link-exact-active {
      color: blueviolet;
    }
  }
}
</style>
